//---------------------------------------------------------------------------

#ifndef STUNEShopH
#define STUNEShopH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
#include <jpeg.hpp>
//---------------------------------------------------------------------------
class TForm_Shop : public TForm
{
__published:	// IDE-managed Components
	TListBox *ListOfStocks;
	TListBox *ListPurchase;
	TButton *btnAdd;
	TButton *btnRemove;
	TEdit *edtQuantity;
	TPanel *Panel_TopBar;
	TLabeledEdit *edtShopID;
	TPanel *Panel_BottomBar;
	TButton *btnOpenLoanShop;
	TLabel *lblStock;
	TLabel *lblPurchase;
	TButton *btnCancel;
	TButton *btnConfirm;
	TLabel *lblTotal;
	TLabel *lblTotalInfo;
	TLabeledEdit *edtGuestId;
	TLabel *lblPurchaseInfo;
	TLabel *lblQuantity;
	TADOConnection *ADOConnectionDB;
	TADOQuery *ADOQueryDB;
	TLabel *lblUnit;
	TLabel *lblKind;
	TLabel *lblPrice;
	TLabel *lblDeposit;
	TButton *Button1;
	TImage *Image2;
	TButton *btnSortName;
	TButton *btnSortPrice;
	TButton *btnSortKind;
	void __fastcall btnOpenLoanShopClick(TObject *Sender);
	void __fastcall btnAddClick(TObject *Sender);
	void __fastcall btnRemoveClick(TObject *Sender);
	void __fastcall btnConfirmClick(TObject *Sender);
	void __fastcall edtQuantityKeyPress(TObject *Sender, char &Key);
	void __fastcall btnCancelClick(TObject *Sender);
	void __fastcall btnSortNameClick(TObject *Sender);
	void __fastcall btnSortPriceClick(TObject *Sender);
	void __fastcall btnSortKindClick(TObject *Sender);
	void __fastcall ListOfStocksClick(TObject *Sender);
	void __fastcall ListPurchaseClick(TObject *Sender);
	void __fastcall edtQuantityClick(TObject *Sender);
	void __fastcall edtQuantityChange(TObject *Sender);
	void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
	void __fastcall Button1Click(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TForm_Shop(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm_Shop *Form_Shop;
//---------------------------------------------------------------------------
#endif
